package cn.edu.scau.sec.zhangsan.composite.safe;

import cn.edu.scau.sec.zhangsan.composite.FourMixedOperations;

public class SafeAtomTestCase extends SafeTestCase {
	private int expect;
	private int add;
	private int added;
	public SafeAtomTestCase(int i, int j, int k) {
		this.expect = i;
		this.add = j;
		this.added = k;
	}
	public int getExpect() {
		return expect;
	}
	public void setExpect(int expect) {
		this.expect = expect;
	}
	public int getAdd() {
		return add;
	}
	public void setAdd(int add) {
		this.add = add;
	}
	public int getAdded() {
		return added;
	}
	public void setAdded(int added) {
		this.added = added;
	}

	public boolean test() {
		FourMixedOperations fourMixedOperations= new FourMixedOperations();
		int actual = fourMixedOperations.add(add, added);
		System.out.println("现在运行的测试用例的值是：" + expect + "，" + add + "，" + added);
		return expect == actual;
	}

}
